package com.otaku.admin.controller;

import com.alibaba.fastjson.JSON;
import com.otaku.admin.dao.entity.SelfUserDetails;
import com.otaku.admin.service.SelfUserDetailsService;
import com.otaku.admin.util.ResultEnum;
import com.otaku.admin.util.ResultVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    private static final Logger LOGGER = LoggerFactory.getLogger(DemoController.class);

    @RequestMapping("/showOrder")
    public String showOrder(){
        return JSON.toJSONString(ResultVO.result(ResultEnum.SUCCESS,true));
    }

    @RequestMapping("/doSomeThing")
    public String doSomeThing(){
        return JSON.toJSONString(ResultVO.result(ResultEnum.SUCCESS,true));
    }

}
